<!doctype html>
<link rel="match" href="../expected/css-pseudo-element-in-has.html" />
<style>
    span::after {
        content: "bar";
        color: red;
    }
    a:has(::after) {
        color: orange;
    }
</style>
<a href="https://example.com"><span>foo</span></a>
